<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<rapid:override name="frame-content">

        <!-- 内容主体区域 -->
	<div style="padding: 15px;">
		<blockquote class="layui-elem-quote">
			<span class="layui-breadcrumb" lay-separator="/"> <a
				href="user/index">首页</a> <a><cite>页面列表</cite></a>
			</span>
		</blockquote>
		<fieldset class="layui-elem-field layui-field-title"
			style="margin-top: 20px;">
			<legend>页面列表</legend>
		</fieldset>
		<form id="pageForm" method="post">
			<table class="layui-table">
				<colgroup>
					<col width="50">
					<col width="50">
					<col width="100">
					<col width="200">
					<col width="50">
					<col width="100">
				</colgroup>
				<thead>
					<tr>
						<th>id</th>
						<th>key</th>
						<th>标题</th>
						<th>内容</th>
						<th>状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="page" items="${pageList }">
						<c:if test="${page.pageStatus==1 }">
							<tr>
								<td>${page.pageId }</td>
								<td>${page.pageKey }</td>
								<td>${page.pageTitle }</td>
								<td><a href="/aboutSite" target="_blank">
										<h2>${page.pageTitle }</h2>
								</a></td>
								<td>显示</td>
								<td><a href="page/edit/${page.pageId }"
									class="layui-btn layui-btn-mini">编辑</a> <a
									href="page/delete/${page.pageId }"
									class="layui-btn layui-btn-danger layui-btn-mini"
									onclick="return confirmDelete()">删除</a></td>
							</tr>
						</c:if>
					</c:forEach>
				</tbody>
			</table>
		</form>
		<fieldset class="layui-elem-field layui-field-title"
			style="margin-top: 20px;">
			<legend>自定义页面</legend>
		</fieldset>
		<div class="layui-form">
			<table class="layui-table" style="width: 40%;">
				<colgroup>
					<col width="150">
					<col width="150">
					<col width="200">
					<col>
				</colgroup>
				<thead>
					<tr>
						<th>别名</th>
						<th>标题</th>
						<th>内容</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="page" items="${pageList }">
						<c:if test="${page.pageStatus==2 }">
							<tr>
								<td>${page.pageKey }</td>
								<td>${page.pageTitle }</td>
								<td><a href="/map" target="_blank">点击查看</a></td>
							</tr>
						</c:if>

					</c:forEach>
				</tbody>
			</table>



			<blockquote class="layui-elem-quote layui-quote-nm">
				温馨提示： <br> 1、自定义的页面，无法删除，别名已写入控制器
			</blockquote>
		</div>
	</div>
</rapid:override>
<%@ include file="../framework.jsp"%>